package smash_tris;

/**
 * Klasa implementująca "pokój" wewnątrz którego toczy się rozgrywka.
 * 
 * @author Maciej Graszek
 * @author Pawel Rychly
 *
 */
public class Room {

	private static Integer nextid = 0;
	
	private Integer id;
	private Integer size = 2;
	private Player[] players = new Player[2];
	private boolean ready = false;
	private Integer roomMaster;
	//TODO weapon list
	
	public Room() {
		setId();
	}
	
	private final void setId(){
		this.id = Room. nextid;
		Room.nextid += 1; 
	}
	
	/**
	 * Metoda zwraca tablice graczy.
	 * @return Array of players.
	 * 
	 */
	public Player[] getPlayers() {
		return players;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public boolean isReady() {
		return ready;
	}

	public void setReady(boolean ready) {
		this.ready = ready;
	}

	public Integer getRoomMaster() {
		return roomMaster;
	}

	public void setRoomMaster(Integer roomMaster) {
		this.roomMaster = roomMaster;
	}
	
	
	
}
